@space: 24px;
@border_light: #4e5154;

.modalDefault() {
  :global {
    .ant-modal-content {
      .ant-modal-header {
        padding-top: 18px;
        padding-bottom: 0;
        border-bottom: 0;
      }

      .ant-modal-body {
        padding: @space;
      }

      .ant-modal-footer {
        padding: @space;
        padding-top: 0;
        border-top: 0;
      }

      .ant-btn + .ant-btn:not(.ant-dropdown-trigger) {
        margin-left: 16px;
      }
      .ant-btn {
        border-radius: 5px;
      }
      // .ant-btn-primary {
      //   background: #18a0fb;
      //   border-color: #18a0fb;
      // }
    }
  }
}

.modal {
  .modalDefault();

  .titleDiv {
    display: flex;
    flex-direction: row;
    align-items: center;
    .titleLogo {
      width: 30px;
      height: 30px;
      margin-right: 10px;
    }

    .title {
      font-weight: 500;
      font-size: 18px;
      font-family: PingFang SC;
      line-height: 18px;
      letter-spacing: 0;
      text-align: left;
    }
  }

  .container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    overflow: hidden;

    .form {
      flex: 1;
      overflow: hidden;
      .warn,
      .otherWarn {
        box-sizing: border-box;
        padding: 8px 13px;
        overflow: hidden;
        color: var(--font-primary);
        font-weight: 400;
        font-size: 12px;
        font-family: PingFang SC;
        line-height: 20px;
        letter-spacing: 0;
        white-space: nowrap;
        text-align: left;
        text-overflow: ellipsis;
        background-color: rgba(24, 160, 251, 0.1);
        border-radius: 5px;
        cursor: pointer;
        .logo {
          width: 14px;
          margin-right: 10px;
        }
      }
      .otherWarn {
        display: inline-block;
      }
    }
  }

  .submitBtn {
    margin-left: 24px;
  }
}

.overlayClassName {
  :global {
    .ant-tooltip-inner {
      // width: calc(60vw - 100px) !important;
      max-height: 300px;
      overflow-x: hidden;
      overflow-y: scroll;
      word-break: break-all;
    }
  }
}
